package com.first.community.exception;

public class CustomizeExcetpion extends  RuntimeException {
    private  Integer code;
    private  String message;

    public CustomizeExcetpion(ICustomizeErrorCode iCustomizeErrorCode) {
        this.code = iCustomizeErrorCode.getCode();
        this.message = iCustomizeErrorCode.getMessage();
    }
    public Integer getCode(){
    return code;
    }

    @Override
    public String getMessage() {
        return message;
    }
}
